

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>javaScript</title>
    <!-- 将外部js引入到我们的网页中来 常用 -->
    <script src="js/script.js"></script>
    <!-- js代码 -->
    <script type="text/javascript">

        // 提示框
        // alert("还行！");
        // 向网页中输出内容，向body中输出内容
        // document.write("你好！");
        // 向控制台输出内容
        // console.log("nihao");
    </script>

</head>
<body>
    <button onclick="alert('niha')">点我一下</button>

    <a href="javascript:alert('还行')">点我</a>
    
</body>
</html>